package viewbuilder.decoratorexample

import org.junit.Test

import util.AssertableBuilder

class HomePageTest {

    @Test
    void layoutIsAppliedCorrectly() {

        def expect = new AssertableBuilder()
        expect.title('My Site - Home')
        expect.tr('class':'highlight')
        expect.tr('class':'')
        expect.tr('class':'highlight')
        expect.tr('class':'')

        expect.replay()

        new HomePage(builder:expect).render([1, 2, 3, 4])

        expect.verify()
        
    }
}